package com.cjw.campus.system.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cjw.campus.system.entity.QuestionsTable;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cjw.campus.system.vo.QuestionsTableVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 提问表 Mapper 接口
 * </p>
 *
 * @author cjw
 * @since 2023-03-06
 */
public interface QuestionsTableMapper extends BaseMapper<QuestionsTable> {

    List<QuestionsTableVO> getByQuestionsId(@Param("questionsId") Integer questionsId);

    IPage<QuestionsTableVO> listDescPageByQuestions(IPage<QuestionsTableVO> page);

}
